<template>
    <div class="sideBarItem" @click="menuClick()">
      <slot></slot>
    </div>
</template>

<script>
    export default {
      name: "sideBarItem",
      props:{
        link:{
          type:String,
          default:''
        }
      },
      methods:{
        menuClick(){
          this.$router.push(this.link).catch(e=>e)
        }
      }
    }
</script>

<style scoped>

</style>
